package BoBai;

public class LaBai {
	 private short rank, suit;
	 private String name;

	    private static String[] suits = { "hearts", "spades", "diamonds", "clubs" };
	    private static String[] ranks  = { "Ace", "2", "3", "4", "5", "6", "7", 
	                                       "8", "9", "10", "Jack", "Queen", "King" };

	    public static String rankAsString( int __rank ) {
	        return ranks[__rank];
	    }

	    LaBai(short suit, short rank,String name)
	    {
	        this.rank=rank;
	        this.suit=suit;
	        this.name = name;
	    }

	    public @Override String toString()
	    {
	          return ranks[rank] + " of " + suits[suit];
	    }

	    public short getRank() {
	         return rank;
	    }

	    public short getSuit() {
	        return suit;
	    }
	    
	    public String getName(){
	    	return name;
	    }
}
